package org.lds.message.center.admin.business.channel.model.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;
import org.lds.message.center.common.model.db.OrderBy;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 条件查询 - 请求
 *
 * @author lidongsheng
 * @since 2024-12-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class ChannelBaseListRequest extends OrderBy implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 通道ID
     */
    private Long id;

    /**
     * 名称
     */
    private String name;

    public void setName(String name) {
        this.name = StringUtils.trimToNull(name);
    }

    /**
     * 描述
     */
    private String desc;

    public void setDesc(String desc) {
        this.desc = StringUtils.trimToNull(desc);
    }

    /**
     * 状态 1:启用 0:停用
     */
    private Boolean enable;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

}
